package com.aj.http.request;

import java.util.HashMap;

import android.content.Context;
import android.util.Log;

import com.aj.http.AsynchronizationHttpRequest;
import com.aj.http.AsynchronizationHttpRequest.IHttpCallBack;

public class QueryTaskListRequest extends BaseRequset {
	private static final String TAG = QueryTaskListRequest.class.getName();

	public void excute(Context context, String fromUserId, String reqType,
			String pageNum, String pageSize, IHttpCallBack httpCallBack) {
		HashMap<String, String> paramsHashMap = new HashMap<String, String>();
		paramsHashMap.put("fromUserId", fromUserId);
		// 0：我发布的任务；1：今天任务；2：明天任务；3：遥远任务；4：历史任务；
		paramsHashMap.put("reqType", reqType);
		paramsHashMap.put("pageNum", pageNum);
		paramsHashMap.put("pageSize", pageSize);
		String tempString = getParams(SERVICE_TASK_LIST_STRING, paramsHashMap);
		Log.e(TAG, "tempString:" + tempString);
		// TODO加密
		AsynchronizationHttpRequest request = new AsynchronizationHttpRequest();
		request.excute(context, BASE_REQUEST_URL_NOPAGE_STRING, tempString,
				httpCallBack);
	}
}
